import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
const store = new Vuex.Store({
	state: {
		userinfo: {}
	},
	mutations: {
		changeUserinfo(state,data) {
			console.log(data)
			state.userinfo = data
			uni.setStorageSync('userinfo', data);
		}
	},
	actions: {}
})
export default store
